﻿namespace In66.Net.Repository.Entities
{
    public class SqlSugarEntity : IEntity<long>, ICreateAudit, IModifyAudit
    {
        /// <summary>
        /// Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public long Id { get; set; }
        /// <summary>
        /// ModifyBy
        /// </summary>
        [SugarColumn(ColumnDescription = "modifyby", ColumnName = "modifyby")]
        public long? ModifyBy { get; set; }
        /// <summary>
        /// ModifyTime
        /// </summary>
        [SugarColumn(ColumnDescription = "modifytime", ColumnName = "modifytime")]
        public DateTime? ModifyTime { get; set; }
        /// <summary>
        /// CreateBy
        /// </summary>
        [SugarColumn(ColumnDescription = "createby", ColumnName = "createby")]
        public long CreateBy { get; set; }
        /// <summary>
        /// CreateTime
        /// </summary>
        [SugarColumn(ColumnDescription = "createtime", ColumnName = "createtime")]
        public DateTime CreateTime { get; set; }
    }
}
